<?php

interface IEmployee{
	public function setEmployeeDetails($employeename, $employeeaddress);
	public function getEmployeeDetails();
	public function CalculateSalary($incentive);
}

class clsEmployee implements IEmployee {

	private $emplname;
	private $empladdress;
	private $basicsalary = 35000;
	private $calculatedvalue;

	public function setEmployeeDetails($name, $address){
        $this->emplname = $name;
        $this->empladdress = $address;
    }

    public function CalculateSalary($incentives){
        $this->calculatedvalue = $this->basicsalary + $incentives;
    }

    public function getEmployeeDetails(){
        return "Employe Details :: ".$this->emplname." ".$this->empladdress." ".$this->calculatedvalue;
    }

}





class clsSendSMS{
	       protected $from = "Parent Class";
	       protected $provider = "PHP Provider";
	       protected $message = "Happy Coding..!";
	       protected $mobilenumber = "0123456789";
	        
	       public function PrintSMS(){
	               
	        echo "<br />" . $this->from." ".$this->provider." ".$this->message." ".$this->mobilenumber;     
	       }
	        
	       protected function SendSMS( $to='' ){
	        echo "<br />Sending SMS $to :: clsSendSMS";     
	       }
	        
	}
	 
	class clsSendTextSMS extends clsSendSMS{
	      protected $from = "asdfasdf";
	      var $to = "Anil Thakur";
	       
	      public function SendSMS( $to ){
	       parent::SendSMS( $to );
	       echo "<br />Sending SMS :: clsSendTextSMS";  
	      }
	}